<?
include("gestione/includes/config.inc.php");
include("gestione/includes/auth.lib.php");
include("gestione/includes/function.inc.php");
include("gestione/includes/product_new.class.php");
include("gestione/includes/e-commerce_new.class.php");
include("gestione/includes/news.class.php");
include("gestione/includes/content.class.php");
include("gestione/includes/keywords.class.php");
include("gestione/includes/class.xml.php");
$lang = "ita";
####################### TOYS #######################################################
$cid = 733;
$tiponews = "piscine";
$titvetrina = "tit-articoli-piscine-vetrina.gif";
$titcontent = "bkgTitCnt_piscine.gif";
$tipobanner = "piscine";
$titprodotti = '<img src="/images/titoli/tit-prodotti-piscine.gif" width="240" height="55">';
$titnovita = '<img src="/images/titoli/tit-novita-piscine.gif" width="200" height="55">';
$logo = '<img src="/images/loghi/bs-piscine.gif" width="99" height="100">';
$bgcolor = '#00A6E9';
####################### SESSION ##############################################################
$newSession = new websession();
$strNumArt = '<strong>non ci sono articoli</strong>';
$str_tot = 0;
if($newSession->order != NULL) {
	$articoli = $newSession->order->getArticoli();
	$numArt = count($articoli);
	$tot = $newSession->order->getTotale($articoli);
	$tot=="" ? $str_tot = 0 : $str_tot = number_format($tot,2,",",".");
	if($numArt>0) {
		$numArt>1 ?
		$strNumArt = '<strong>'.$numArt.' prodotti</strong>' : 
		$strNumArt = '<strong>'.$numArt.' prodotto</strong>';
	} else 
		$strNumArt = '<strong>non ci sono articoli</strong>';
}
$strNumArt .= '<br><strong>TOTALE: '.$str_tot.'</strong>';
if($newSession->getStatus())  {
	$registrati = '<div class="col_lft_tit">ACCOUNT</div>
	<div class="col_lft_main"><a href="/webproduct.php?op=profile" title="Il tuo Profilo"><img src="/immagini/freccia.png" width="9" height="8" /><blockquote>Il tuo Profilo</blockquote></a>
	<a href="/webproduct.php?op=logout"><img src="/immagini/freccia.png" width="9" height="8" /><blockquote>Log out</blockquote></a>
	</div>';
	$tablelogin = '';
} else {
	$registrati = '<div class="col_lft_tit">REGISTRATI</div>
<div class="col_lft_main"><a href="/webproduct.php?op=register"><img src="/immagini/freccia.png" width="9" height="8" /><blockquote>Login</blockquote></a>
</div>';
}
####################################################################################################
$track = $_POST['track'];
if($track!="")  {
  die(order::getTrack($track));
}
$titolo = "Stato Ordini";
$content = '<div class="plain" style="padding:10px">
				<p>Per avere informazioni sullo stato dell\'ordine inserisci il numero d\'ordine (es. BSV111) e clicca sul bottone VAI, verranno visualizzati i dettagli dell\'ordine. </p>
				<p>&nbsp;</p>
				<div align="center">
				<p class="tit02b" align="left">Numero Ordine</p>
				<p align="left"><input type="text" id="track" size="20">&nbsp;<input type="button" value="VAI" onClick="ajax_track()"></p>
				</div>
				<p>&nbsp;</p>
				<div id="ordertrack">
				</div>
				  </div>';	 
$navbar = '<div class="breadcrumb"><a class="navbar" href="/index.php">Home</a> <span class="navigation-pipe">&gt;</span> Stato Ordini</div>';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="it" xmlns="http://www.w3.org/1999/xhtml"><head>
<? include("includes/header.php") ?>
<script type="text/javascript" src="/js/ajax_track.js"></script>
</head>
<body>
<div class="content">
<? include("includes/top.php")?>
<div class="main">
<? include("includes/left.php")?>
<div class="col_dx">
<?=$navbar?>
<?=$content?>
<div class="chiudi"></div>
</div>
<div class="chiudi"></div>
<? include("includes/footer.php")?>
</div>
</div>
</body>
</html>